import Vue from 'vue';
import App from './app.vue';
import ElementUI from 'element-ui';
import VueRouter from 'vue-router';
import 'element-ui/lib/theme-default/index.css';

import pageDemo from './pages/demo.vue';

Vue.use(ElementUI);
Vue.use(VueRouter);

// 项目路由声明
const router = new VueRouter({
    routes: [{
        path: '/home',
        component:  { template: '<div>foo</div>' }
    }, {
        path : '/demo',
        component: pageDemo
    }

        //{ path: '/album', component: require('../pages/album.vue') },
        //{ path: '/goods/list', component: require('../pages/goods/list.vue') },
        //{ path: '/goods/edit', component: require('../pages/goods/edit.vue') }
        //{ path: '/', component: require('../src/controller/console/home.js') }
    ]
});

new Vue({
    el: '#app',
    router: router,
    components : {
        ElementUI
    },
    render: h => h(App)
});
